package kr.ac.skhu.m.controller.neuti.facilities;


import java.net.URL;
import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import net.htmlparser.jericho.Element;
import net.htmlparser.jericho.HTMLElementName;
import net.htmlparser.jericho.Source;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;


public class ClassRoomC extends AbstractController {
	
	private String successView;
	
	public void setSuccessView(String successView) {
		this.successView = successView;
	}

	@Override
	protected ModelAndView handleRequestInternal(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		
		ModelAndView mav = new ModelAndView(successView);
	
		String urlStr = "http://www.skhu.ac.kr/uni_zelkova/uni_zelkova_5_5.aspx";
		URL url = new URL(urlStr);
		Source source = new Source(url);
		
		source.fullSequentialParse();
		
		return mav;
	}
	
}
